<template>
  <div>
    <van-nav-bar
      title="统计报表"
      left-arrow
      @click-left="$router.push('/user')"
    />
    <div class="m-t--1">
      <van-tabs v-model="active">
        <van-tab title="按分类">
          <state-type></state-type>
        </van-tab>
        <van-tab title="按商品">
          <state-goods></state-goods>
        </van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script>
import StateType from './components/StateType'
import StateGoods from './components/StateGoods'

export default {
  data () {
    return {
      active: ''
    }
  },
  components: {
    StateType,
    StateGoods
  }
}
</script>

<style lang="scss" scoped>
</style>
